Extending Gatsby by Nabendu Biswas

Extending Gatsby by Nabendu Biswas

Author:Nabendu Biswas
Language: eng
Format: epub
ISBN: 9781484268551
Publisher: Apress


export default StyledRightMenu;

Listing 4-25RightMenu.styled.js

Next, we will import RightMenu at the top of the file. We next add the new state variables for our right menu. Now, we can use all this in our button by first adding an onClick handler. Also, we will use our RightMenu component and pass the props open. The updated content is shown in bold in Listing 4-26...

..

import Advert from "../components/Advert";

import RightMenu from "../components/Menu/RightMenu";

...

...

export default () => {

const response = useStaticQuery(getPosts)

const allPosts = response.allMdx.edges



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.